<div class="contentNewsLeft">

    <div id="ContentPlaceHolder1_up1">
        <div class="">
            <div class="boxNewsTop"></div>
            <div class="boxNewstMiddle">
                <div class="titleNews">
                    <h2>THÔNG BÁO</h2>
                </div>
                <?php if (isset($announcement) && $announcement != null): ?>
                    <div class="newsLargeItem-1" align="left">
                        <?php foreach ($announcement as $row): ?>
                            <div>
                                <div class="titleBlue"><?php echo $this->escapeHtml($row->title); ?></div>
                                <div class="datePost">Ngày đăng:
                                    <?php
                                    $dateCreated = new DateTime($row->dateCreated);
                                    echo $this->escapeHtml($dateCreated->format('d-m-Y'));
                                    ?>
                                </div>            
                                <?php echo $row->contentDetail ?>         
                            </div>                     
                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                <div>
                    <div class="labelNewsPosted">Các tin đã đưa</div>
                    <?php if (isset($listNewAnnouncement) && $listNewAnnouncement != null): ?>
                        <?php foreach ($listNewAnnouncement as $row): ?>
                            <a class="linkNewsPosted" href="<?php echo $this->url('view-article/process', array('action' => 'announcementDetail', 'id' => $row->articleID)) ?>">
                                <?php echo $this->escapeHtml($row->title); ?>
                                <span>
                                    <?php echo $this->escapeHtml('Ngày đăng: ' . $row->dateCreated); ?>
                                </span>
                            </a>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>
        <div class="boxNewsBottom"></div>
    </div>


</div>

